package Scenes
{
	import Objects.GameObject;
	
	import flash.display.Sprite;

	public class SceneFade
	{
		public var nextScene:GameScene;
		protected var ticks:int;
		public var removed:Boolean=false;
		public var gss:GameSceneStack;
		public var currentScene:GameScene;
		public function SceneFade()
		{
			super();
		}
		public final function update():void
		{
			ticks++;
			_update();
		}
		protected function _update():void
		{
			
		}
		public function pushScene():void
		{
			gss.pushScene(nextScene,false);
		}
		public function remove():void
		{
			_remove();
			removed=true;
		}
		protected function _remove():void
		{
			
		}
	}
}